<template>
    <div class="hello">{{num}}Hello {{who}}</div>
</template>

<script>
    module.exports = {
        props:["num"],
        data: function() {
            return {
                who: 'world'
            }
        },
        components: {
            'my-component': httpVueLoader('my-component.vue'),
        },
        mounted() {
            // this.load();
        },
        methods:{
            load() {
                let _this = this;
                _this.loading=true;
                iget('/admin/category',
                    _this.params,
                    successRes => {
                        console.info("加载成功sdgf：",successRes)
                    },failureRes => {
                        console.info("加载数据异常asdfg",failureRes)
                    }
                )
            },
        }
    }
</script>

<style>
    .hello {
        background-color: #ffe;
    }
</style>